<?php

namespace common\models\course;

use Yii;

/**
 * This is the model class for table "{{%course_data}}".
 *
 * @property int $id
 * @property string $course_id 课程ID
 * @property string $content 课程描述
 */
class CourseData extends \common\base\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%course_data}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['course_id'], 'integer'],
            [['content'], 'required'],
            [['content'], 'string'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'course_id' => '课程ID',
            'content' => '课程描述',
        ];
    }
}
